class Contract < ActiveRecord::Base
  has_one :client
  has_and_belongs_to_many :services, :association_foreign_key => "service_id", :join_table => "services_contracts"
  
  validates_uniqueness_of :code
end
